import uvicorn
import os

if __name__ == "__main__":
    port = int(os.environ.get("PORT", 3001))
    print(f"Starting server on port {port}...")
    uvicorn.run(
        "main:app", 
        host="0.0.0.0", 
        port=port, 
        reload=True
    )